package com.linkgie.galaxyframework.metric;

import com.linkgie.galaxyframework.metadata.DataEntity;
import com.linkgie.galaxyframework.metadata.DataField;
import com.linkgie.galaxyframework.metadata.DataInterface;
import com.linkgie.galaxyframework.metadata.DataKey;
import com.linkgie.galaxyframework.metadata.DataLabel;

@DataInterface
@DataEntity
public class MetricVO implements KeyValueMetric {

    @DataKey
    @DataField(name = "编码", order = 0, readonly = true)
    private String code;

    @DataLabel
    @DataField(name = "名称", order = 1, readonly = true)
    private String name;

    @DataField(name = "指标值", order = 2, readonly = true)
    private long value;

    /**
     * @return the code
     */
    public String getKey() {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the value
     */
    public long getValue() {
        return value;
    }

    /**
     * @param value the value to set
     */
    public void setValue(long value) {
        this.value = value;
    }

}
